package com.eighth.singleton;

/*
单例模式
 */

public class SingletonTest {
    public static void main(String[] args) {
        Singleton1 s1 = Singleton1.getInstance();
        s1.print();
        Singleton2 s2 = Singleton2.getInstance();
        s2.print();
        Singleton3.print();
    }
}
